<?php
class PermissionModel {
    public function __construct() {
    }

    public function check($data) {
        if($data['location'] !== 'tw') {
            throw new ExceptionLib('', 3);
        }
        //if($data['age'] !== 'gte18') {
        //    throw new ExceptionLib('', 4);
        //}
        return true;
    }
}
?>
